package com.laowang.controller;

import com.laowang.dto.OrderDTO;
import com.laowang.sercice.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by Administrator on 2019/1/17.
 */
@Controller
@RequestMapping("/pay")
public class PayController {
    @Autowired
    private OrderService orderService;
    @GetMapping("/create")
    public void create(@RequestParam("orderId") String orderId,
                         @RequestParam("returnUrl") String returnUrl){
          //1.查询订单
        OrderDTO orderDTO = orderService.findById(orderId);
    }
}
